﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace WinApp.Common
{
    public sealed class Config
    {
        public static string SocketServerIPAddress
        {
            get
            {
                return ConfigurationManager.AppSettings["SocketServerIPAddress"];
            }
        }

        public static int SocketServerPort
        {
            get
            {
                return Convert.ToInt32(ConfigurationManager.AppSettings["SocketServerPort"]);
            }
        }

        public static string SocketClientIPAddress
        {
            get
            {
                return ConfigurationManager.AppSettings["SocketClientIPAddress"];
            }
        }

        public static int SocketClientPort
        {
            get
            {
                return Convert.ToInt32(ConfigurationManager.AppSettings["SocketClientPort"]);
            }
        }

        public static int SocketServerListenBacklog
        {
            get
            {
                return Convert.ToInt32(ConfigurationManager.AppSettings["SocketServerListenBacklog"]);
            }
        }
    }
}
